let mysql = require("mysql");
let pool = mysql.createPool({
	connectionLimit: 10,
	host: "localhost",
	user: "root",
	password: "123456",
	database: "mine",
});
function sql(sql) {
	return new Promise((resolve, reject) => {
		pool.query(sql, (err, data) => {
			if (err) reject(err);
			resolve(data);
		});
	});
}
module.exports = sql;
